///**
// *
// */
//package com.guchenbo.example.classloader;
//
//import java.net.URL;
//
///**
// * @author Cre.Gu
// *
// */
//public class Test {
//	@SuppressWarnings("restriction")
//	public static void main(String[] args) {
//
//		URL[] urls = sun.misc.Launcher.getBootstrapClassPath().getURLs();
//		for (int i = 0; i < urls.length; i++) {
//			System.out.println(urls[i].toExternalForm());
//		}
//		System.out.println("============分隔符===============");
//		System.out.println(System.getProperty("sun.boot.class.path"));
//		System.out.println(System.getProperty("java.ext.dirs"));
//		String javaClassPath=System.getProperty("java.class.path");
//		System.out.println("java.class.path:");
//		String[] javaClassPathArr=javaClassPath.split(":");
//		for (String s : javaClassPathArr) {
//			System.out.println(s);
//		}
//		System.out.println();
//		System.out.println("============分隔符===============");
//
//		Test t = new Test();
//		System.out.println(t.getClass().getClassLoader());
//		System.out.println(t.getClass().getClassLoader() instanceof java.lang.ClassLoader);
//		System.out.println("============分隔符===============");
//
//		ClassLoader extensionClassloader = ClassLoader.getSystemClassLoader().getParent();
//		System.out.println("the parent of app classloader : " + extensionClassloader);
//		System.out.println("the parent of extension classloader : " + extensionClassloader.getParent());
//
//		System.out.println(ClassLoader.getSystemClassLoader());
//		System.out.println(String.class.getClassLoader());
//
//		System.out.println("############################");
//		ClassLoader loader = Test.class.getClassLoader();
//		while (loader != null) {
//			System.out.println(loader.toString());
//			loader = loader.getParent();
//		}
//
//		loader = Test.class.getClassLoader();
//		while (loader != null) {
//			System.out.println("the parent of " + loader.toString() + " is " + loader.getParent());
//			loader = loader.getParent();
//		}
//
//		System.out.println(Thread.currentThread().getContextClassLoader());
//	}
//}
